In calculus, l'Hôpital's rule pronounced: [lopiˈtal] (also sometimes spelled l'Hospital's rule with silent "s" and identical pronunciation), also called Bernoulli's rule, uses derivatives to help evaluate limits involving indeterminate forms. Application (or repeated application) of the rule often converts an indeterminate form to a determinate form, allowing easy evaluation of the limit. The rule is named after the 17th-century French mathematician Guillaume de l'Hôpital, who published the rule in his book Analyse des Infiniment Petits pour l'Intelligence des Lignes Courbes (literal translation: Analysis of the Infinitely Small for the Understanding of Curved Lines) (1696), the first textbook on differential calculus.[1][2] However, it is believed that the rule was discovered by the Swiss mathematician Johann Bernoulli.[3]
The Stolz-Cesàro theorem is a similar result involving limits of sequences, but it uses finite difference operators rather than derivatives.
In its simplest form, l'Hôpital's rule states that for functions and :
If
then
The differentiation of the numerator and denominator often simplifies the quotient and/or converts it to a determinate form, allowing the limit to be evaluated more easily.
Contents |
The general form of l'Hôpital's rule covers many cases. Let c and L be extended real numbers (i.e., real numbers, positive infinity, or negative infinity). The real valued functions f and g are assumed to be differentiable on an open interval with endpoint c, and additionally on the interval. It is also assumed that Thus the rule applies to situations in which the ratio of the derivatives has a finite or infinite limit, and not to situations in which that ratio fluctuates permanently as x gets closer and closer to c.
If either
or
Then
The limits may also be one-sided limits. In the second case, the hypothesis that f diverges to infinity is not used in the proof (see note at the end of the proof section); thus, while the conditions of the rule are normally stated as above, the second sufficient condition for the rule's procedure to be valid can be more briefly stated as
The requirement that the limit
exist is essential. Without this condition, it may be the case that and/or exhibits undampened oscillations as x approaches c. If this happens, then l'Hôpital's rule does not apply. For example, if and , then
this expression does not approach a limit, since the cosine function oscillates between 1 and −1. But working with the original functions, can be shown to exist:
Sometimes l'Hôpital's rule does not lead to an answer in a finite number of steps unless a transformation of variables is applied. Examples include the following:
Other indeterminate forms, such as 1∞, 00, ∞0, 0 × ∞, and ∞ − ∞, can sometimes be evaluated using l'Hôpital's rule. For example, to evaluate a limit involving ∞ − ∞, convert the difference of two functions to a quotient:
where l'Hôpital's rule was applied in going from (1) to (2) and then again in going from (3) to (4).
l'Hôpital's rule can be used on indeterminate forms involving exponents by using logarithms to "move the exponent down". Here is an example involving the indeterminate form 00:
It is valid to move the limit inside the exponential function because the exponential function is continuous. Now the exponent has been "moved down". The limit limx→0+ (x ln x) is of the indeterminate form 0 × (-∞), but as shown in an example above, l'Hôpital's rule may be used to determine that
Thus
Although l'Hôpital's rule is a powerful way of evaluating otherwise hard-to-evaluate limits, it is not always the easiest way. Consider
This limit may be evaluated using l'Hôpital's rule:
It is valid to move the limit inside the cosine function because the cosine function is continuous.
But a simpler way to evaluate this limit is to use a substitution. y = 1/x. As |x| approaches infinity, y approaches zero. So,
The final limit may be evaluated using l'Hôpital's rule or by noting that it is the definition of the derivative of the sine function at zero.
Still another way to evaluate this limit is to use a Taylor series expansion:
For |x| ≥ 1, the expression in parentheses is bounded, so the limit in the last line is zero.
Consider the curve in the plane whose x-coordinate is given by g(t) and whose y-coordinate is given by f(t), i.e.
Suppose f(c) = g(c) = 0. The limit of the ratio f(t)/g(t) as t → c is the slope of tangent to the curve at the point [0, 0]. The tangent to the curve at the point t is given by [g′(t), f ′(t)]. L'Hôpital's rule then states that the slope of the tangent at 0 is the limit of the slopes of tangents at the points approaching zero.
The proof of l'Hôpital's rule is simple in the case where f and g are continuously differentiable at the point c and where a finite limit is found after the first round of differentiation. It is not a proof of the general l'Hôpital's rule because it is stricter in its definition, requiring both differentiability and that c be a real number. Since many common functions have continuous derivatives (e.g. polynomials, sine and cosine, exponential functions), it is a special case worthy of attention.
Suppose that f and g are continuously differentiable at a real number c, that , and that . Then
This follows from the difference-quotient definition of the derivative. The last equality follows from the continuity of the derivatives at c. The limit in the conclusion is not indeterminate because .
The proof of a more general version of L'Hôpital's rule is given below.
The following proof is due to (Taylor 1952), where a unified proof for the 0/0 and ±∞/±∞ indeterminate forms is given. Taylor notes that different proofs may be found in (Lettenmeyer 1936) and (Wazewski 1949).
Let f and g be functions satisfying the hypotheses in the General form section. Let be the open interval in the hypothesis with endpoint c. Considering that on this interval and g is continuous, can be chosen smaller so that g is nonzero on [4].
For each x in the interval, define and as ranges over all values between x and c. (The symbols inf and sup denote the infimum and supremum.)
From the differentiability of f and g on , Cauchy's mean value theorem ensures that for any two distinct points x and y in there exists a between x and y such that . Consequently for all choices of distinct x and y in the interval. The value g(x)-g(y) is always nonzero for distinct x and y in the interval, for if it was not, the mean value theorem would imply the existence of a p between x and y such that g' (p)=0.
The definition of m(x) and M(x) will result in an extended real number, and so it is possible for them to take on the values ±∞. In the following two cases, m(x) and M(x) will establish bounds on the ratio f/g.
Case 1:
For any x in the interval , and point y between x and c,
and therefore as y approaches c, and become zero, and so
Case 2:
For any x in the interval , define . For any point y between x and c, we have
As y approaches c, both and become zero, and therefore
The limit superior and limit inferior are necessary since the existence of the limit of f/g has not yet been established.
We need the facts that
and
In case 1, the Squeeze theorem, establishes that exists and is equal to L. In the case 2, and the Squeeze theorem again asserts that , and so the limit exists and is equal to L. This is the result that was to be proven.
Note: In case 2 we did not use the assumption that f(x) diverges to infinity within the proof. This means that if |g(x)| diverges to infinity as x approaches c and both f and g satisfy the hypotheses of l'Hôpital's rule, then no additional assumption is needed about the limit of f(x): It could even be the case that the limit of f(x) does not exist.
In the case when |g(x)| diverges to infinity as x approaches c and f(x) converges to a finite limit at c, then l'Hôpital's rule would be applicable, but not absolutely necessary, since basic limit calculus will show that the limit of f(x)/g(x) as x approaches c must be zero.